<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <main>
        <div class="container">
        <section class="register-form">
            <h2>注册</h2>
            <form action="首页.html">
                <label for="username">用户名:</label>
                <input type="text" id="username" name="username" required>
                <label for="email">电子邮箱:</label>
                <input type="email" id="email" name="email" required>
                <label for="password">密码:</label>
                <input type="password" id="password" name="password" required>
                <label for="confirm-password">确认密码:</label>
                <input type="password" id="confirm-password" name="confirm-password" required>
                <button type="submit">注册</button>
            </form>
            <p>已经有账号？<a href="login.html">登录</a></p>
        </section>
        </div>
    </main>
    <footer>
        <p>&copy; 2024 新闻网站。大黄版权所有。</p>
    </footer>
    <script src="scripts.js"></script>
</body>
</html>